<template>
  <el-col v-if="span > 0" :span="span">
    <slot></slot>
  </el-col>
  <el-col v-else :xs="24" :sm="12" :md="12" :lg="8" :xl="6">
    <slot></slot>
  </el-col>
</template>

<script setup lang="ts">
// 自适应信息展示，依赖于el-row组件
defineProps({
  span: { type: Number, default: 0 } // 手动设置列数，手动之后自适应不起作用,值为1-24
})
</script>

<style lang="scss" scoped>
.ep-col {
  margin-bottom: 16px;
}
</style>
